package oceanwiki.req;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

@ToString
@Data
public class UserSaveReq {

    //主键
    private Long id;

    //登录名
    @NotEmpty(message = "用户名不能为空")
    private String loginName;

    //昵称
    @NotEmpty(message = "昵称不能为空")
    private String name;

    @NotEmpty(message = "密码不能为空")
    private String password;

}
